/*
 * @Description:
 * @Author: zheng yiliang
 * @Date: 2021-04-11 18:59:17
 * @LastEditTime: 2021-04-11 18:59:47
 * @LastEditors: zheng yiliang
 */

const req = require.context('../../icons/svg', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys()

const re = /\.\/(.*)\.svg/

const icons = requireAll(req).map(i => {
  return i.match(re)[1]
})

export default icons
